// 搜索相关的mock数据

// 生成模拟搜索结果
export function generateMockResults(keyword) {
  // 这里是模拟数据，实际应该从API获取
  const mockData = [
    {
      articleId: 1,
      title: `【${keyword}】相关文章标题1`,
      subtitle: '这是文章的副标题，包含一些文章的简要介绍内容',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/2025-06-21/article-cover1.png',
      authorName: '作者名称1',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/2025-06-21/avatar1.png',
      readCount: 1234,
      likeCount: 56,
      favoriteCount: 23,
      likeFlg: false,
      favoriteFlg: false
    },
    {
      articleId: 2,
      title: `【${keyword}】相关文章标题2`,
      subtitle: '这是文章的副标题，包含一些文章的简要介绍内容',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/2025-06-21/article-cover2.png',
      authorName: '作者名称2',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/2025-06-21/avatar2.png',
      readCount: 2345,
      likeCount: 78,
      favoriteCount: 45,
      likeFlg: true,
      favoriteFlg: false
    },
    {
      articleId: 3,
      title: `【${keyword}】相关文章标题3`,
      subtitle: '这是文章的副标题，包含一些文章的简要介绍内容',
      authorName: '作者名称3',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/2025-06-21/avatar3.png',
      readCount: 3456,
      likeCount: 90,
      favoriteCount: 67,
      likeFlg: false,
      favoriteFlg: true
    }
  ];
  
  return mockData;
}

// 热门搜索数据
export const hotSearches = [
  { keyword: '校园招聘' },
  { keyword: '实习经验' },
  { keyword: '考研攻略' },
  { keyword: '职业规划' },
  { keyword: '学习方法' }
];